package com.tjbklx1.pattern.specification.demo4;

/**
 * 抽象规格书
 * 
 * @author tjbklx1
 * @date 2018-10-9
 */
public interface ISpecification {
	// 候选者是否满足要求
	public boolean isSatisfiedBy(Object candidate);

	// and操作
	public ISpecification and(ISpecification spec);

	// or操作
	public ISpecification or(ISpecification spec);

	// not操作
	public ISpecification not();
}